import { NestMiddleware } from "@nestjs/common";
import { Request, Response } from 'express';
// 知识点
// 1、 中间件之自定义的中间件
export class MyMiddleware implements NestMiddleware {
    use(req: Request, res: Response, next: (error?: any) => void) {
        console.log('MyMiddleware=>', req.method, '---', req.path);
        next();
    }
    
}